home *** CD-ROM | disk | FTP | other *** search
/ Freaks Macintosh Archive / Freaks Macintosh Archive.bin / Freaks Macintosh Archives / Hacking & Misc / MacTCPSwitcher1.1.sit / MacTCP Switcher / MacTCP Switcher Doc next >
Text File  |  1995-04-28  |  5KB  |  73 lines

  1. MacTCP Switcher
  2.  
  3. Version 1.1
  4. April 28, 1995
  5.  
  6.  
  7. Introduction
  8.  
  9. MacTCP Switcher is a very simple little program that makes it easy to save and quickly restore multiple MacTCP configurations. This is especially useful for PowerBook users who carry their PowerBooks around and regularly use them with different network connections (e.g., SLIP at home and LocalTalk or Ethernet at work).
  10.  
  11. At Northwestern University, we also use MacTCP Switcher to prepare canned MacTCP configurations for the Ethernet connections in our electronic classrooms.
  12.  
  13. MacTCP Switcher is *NOT* used to configure MacTCP or to display the current MacTCP configuration. Use the regular MacTCP control panel to do that.
  14.  
  15. To save a MacTCP configuration, first use the MacTCP control panel to set the configuration you want to save. Test it to make certain it works. Then run the MacTCP Switcher program. A standard save file dialog appears. Specify a location and name for the saved configuration file and click the Save button. MacTCP Switcher takes a snapshot of your current MacTCP configuration and saves it on the specified file.
  16.  
  17. To restore a saved MacTCP configuration, double-click the saved configuration file’s icon in the Finder. An alert appears asking if you really want to set MacTCP to the saved configuration. The alert has three buttons:
  18.  
  19. Set MacTCP: Set MacTCP to the saved configuration.
  20. Cancel: Quit without changing MacTCP’s current configuration.
  21. Save: Save MacTCP’s current configuration, then set the new configuration.
  22.  
  23. After you set a new configuration, another alert appears telling you that MacTCP has been set. The alert may say that you need to restart your Mac before the new settings take effect. In this case, the alert also contains a Restart button that you can click to restart.
  24.  
  25. Command-S is a shortcut for the Save button in the first alert. Command-R is a shortcut for the Restart button in the second alert.
  26.  
  27. Tip: Put your saved configuration files in the Apple Menu Items folder. Then you can quickly switch between MacTCP configurations by selecting commands in the Apple menu.
  28.  
  29. MacTCP Switcher requires System 7.0 or later.
  30.  
  31.  
  32. How it Works
  33.  
  34. When a configuration is saved, MacTCP Switcher copies the ipln id=128 and dnsl id=128 resources from your MacTCP Prep file to the saved configuration file. If the MacTCP Prep file does not exist, the MacTCP control panel file is used instead.
  35.  
  36. When a configuration is restored, MacTCP Switcher copies the two resources from the saved configuration file to the MacTCP Prep file. The MacTCP Prep file is created if it doesn’t already exist.
  37.  
  38. MacTCP Switcher never writes to the MacTCP control panel file, only to the MacTCP Prep file.
  39.  
  40. After a configuration is restored, MacTCP Switcher walks the unit table to see if the MacTCP driver is open. If the driver does not appear in the unit table, or if it is closed, an alert is dispayed telling you that “MacTCP has ben set”. If the driver is open, the alert also tells you that you must restart your Mac before the changes will take effect, and the alert contains a Restart button.
  41.  
  42.  
  43. Author
  44.  
  45. John Norstad
  46. Academic Computing and Network Services
  47. Northwestern University
  48. j-norstad@nwu.edu
  49.  
  50.  
  51. FTP Site
  52.  
  53. The official FTP site for MacTCP Switcher, the document, and the source code is:
  54.  
  55.    ftp://ftp.acns.nwu.edu/pub/jlnstuff/mactcp-switcher/
  56.  
  57.  
  58. Disclaimer and Copyright Notice
  59.  
  60. NORTHWESTERN UNIVERSITY PROVIDES MACTCP SWITCHER AS IS, WITHOUT ANY WARRANTY OR PROMISE OF TECHNICAL SUPPORT.  NORTHWESTERN UNIVERSITY DISCLAIMS ANY LIABILITY OF ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF MACTCP SWITCHER, INCLUDING, WITHOUT LIMITATION, INCIDENTAL, CONSEQUENTIAL, INDIRECT OR SPECIAL DAMAGES OF ANY KIND, EVEN IF NORTHWESTERN UNIVERSITY IS AWARE OF THE POSSIBILITY OF SUCH DAMAGES.  NORTHWESTERN UNIVERSITY MAKES NO WARRANTIES, EXPRESS OR IMPLIED, WITH RESPECT TO THE PROGRAM, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. 
  61.  
  62. Copyright © 1993-1995, Northwestern University. Permission is granted to make and distribute copies of this software. The software may not, however, be sold or distributed for profit, or included with other software, products, publications, or services which are sold or distributed for profit, without the permission of Northwestern University.
  63.  
  64. MacTCP Switcher is free. There is no shareware fee.
  65.  
  66.  
  67. Revision History
  68.  
  69. Version 1.0. January 10, 1994. First release.
  70.  
  71. Version 1.1. April 28, 1995. Attempt to fix the "unexpected error -39" error reported by several users. Detect and report damaged settings files and damaged MacTCP files. Flush volumes after writing files to prevent file damage caused by susequent unrelated system crashes. Improve error messages. Switch from Think C to CodeWarrior and the universal header files.
  72.  
  73.